<template>
  <div class="techonlogy">
    <mine-title>技术掌握</mine-title>
    <div class="tg-box">
      <div>
        <el-progress
          type="dashboard"
          :percentage="percentage"
          :color="colors"
        ></el-progress>
       <p>HTML5</p>
      </div>
      <div>
        <el-progress
          type="dashboard"
          :percentage="percentage"
          :color="colors"
        ></el-progress>
        <p>CSS3</p>
      </div>
       <div>
        <el-progress
          type="dashboard"
          :percentage="javascript"
          :color="colors"
        ></el-progress>
        <p>JavaScript</p>
      </div>
       <div>
        <el-progress
          type="dashboard"
          :percentage="javascript"
          :color="colors"
        ></el-progress>
        <p>JQuery</p>
      </div>
       <div>
        <el-progress
          type="dashboard"
          :percentage="vue"
          :color="colors"
        ></el-progress>
        <p>Vue</p>
      </div>
    </div>
  </div>
</template>

<script>
import MineTitle from "../mine/Mine-title";

export default {
  data() {
    return {
      percentage: 0,
      javascript:0,
      vue:0,
      colors: [
        { color: "#f56c6c", percentage: 20 },
        { color: "#e6a23c", percentage: 40 },
        { color: "#5cb87a", percentage: 60 },
        { color: "#1989fa", percentage: 80 },
        { color: "#6f7ad3", percentage: 100 },
      ],
    };
  },
  methods: {
    increase() {
      this.percentage += 90;
      if (this.percentage > 90) {
        this.percentage = 90;
      }
      this.javascript += 85;
      if (this.javascript > 85) {
        this.javascript = 85;
      }
       this.vue += 80;
      if (this.vue > 80) {
        this.vue = 80;
      }
    },
  },
  name: "Mine-technology",
  components: {
    MineTitle,
  },
};
</script>

<style>
.techonlogy {
  position: relative;
}
.tg-box {
  width: 70vw;
  height: 50vh;
  /* background-color: #fff; */
  position: absolute;
  top: 260px;
  left: 50%;
  margin-left: -35vw;
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.tg-box>div{
width: 12%;
height: 100%;
float: left;
/* background-color: #ccc; */
/* border: solid 1px red; */
}
.tg-box div p{
  font-size: 20px;
  color: orange;
}

</style>